{% from 'macros/link/index.xml.njk' import link %}

{% for i in range(1, 51) %}
  <item key="{{ i }}" style="item{% if loop.last %} item-last{% endif %}" id="item-{{ i }}">
    <text style="item-label">Item {{ i }}</text>
    {% if i == 15 or i == 25 or i == 35 %}
      {% call link('Scroll to top') -%}
        <behavior action="scroll" target="top" scroll:animated="true" />
      {%- endcall %}
    {% endif %}
  </item>
{% endfor %}

<item key="bottom">
  <view id="bottom" style="links-container">
    {% call link('Scroll to top') -%}
      <behavior action="scroll" target="top" scroll:animated="true" />
    {%- endcall %}
  </view>
</item>
